package com.dawn.cloud.pos.drive.sdk;


import com.XXX.socialsecuritycard.impl.ISocialSecurityInterface;
import com.androidyang.library.common.utils.GsonUtils;
import com.orhanobut.logger.Logger;

import org.json.JSONObject;

/**
 * @author yyh
 *
 * @date 2018/07/05
 *
 * @description 医保卡SDK
 */
public class YBSdk {

	/**
	 * 获取医保卡信息
	 *
	 * @param password
	 * @return
	 */
	public static String readCardInfo(String password) {
		String result = "";
		ISocialSecurityInterface iSocialSecurityInterface = new ISocialSecurityInterface();
		JSONObject jsonObject = new JSONObject();
		int i =iSocialSecurityInterface.load(password,100000,jsonObject);
		result = GsonUtils.toJson(jsonObject);
		Logger.d("result:"+ result);
		return result;

	}
}
